<template>
  <div id="OrderdetailSO2">
    <g-details
      :detailData="data.detailData"
      :inputConfig="inputConfig"
      :rules="rules"
    ></g-details>
  </div>
</template>

<script>
import baseMixin from "@/mixins/BaseMixin";

export default {
  name: "OrderdetailSO2",
  mixins: [baseMixin],
  props: {
    data: {
      type: Object,
    },
  },
  data() {
    return {
      inputConfig: [
        {
          type: "input",
          label: this.$t('outbound.userlinenumber'),
          props: "orderlinenumber",
          disabled: true,
        },
        {
          type: "select",
          label: this.$t('config.allocaStrategy'),
          props: "newallocationstrategy",
          options: this.getOptions("queryNewallocationstrategyDropDown"),
          disabled: this.data.newFlag,
        },
        {
          type: "select",
          label: this.$t('out.preallocatestrategykey'),
          props: "preallocatestrategykey",
          options: this.getOptions("queryPreallocatestrategyDropDown"),
          disabled: this.data.newFlag,
        },
        {
          type: "select",
          label: this.$t('config.strategykey'),
          props: "allocatestrategykey",
          options: this.getOptions("queryAllocatestrategyDropDown"),
          disabled: this.data.newFlag,
        },
        {
          type: "select",
          label: this.$t('out.allocatestrategytype'),
          props: "allocatestrategytype",
          options: this.getOptions("querycodeLkup/ALLOCTYPE"),
        },
        {
          type: "select",
          label: this.$t('config.turnoverType'),
          props: "rotation",
          options: this.getOptions("querycodeLkup/ROTATION"),
          break:true
        },
        {
          type: "select",
          label: this.$t('config.rotateby'),
          props: "skurotation",
          options: this.getOptions("querycodeLkup/SKUROTATE"),
        },
        {
          type: "select",
          label: this.$t('config.dapicksort'),
          props: "dapicksort",
          options: this.getOptions("querycodeLkup/DAPICKSORT"),
        },
        {
          type: "select",
          label: this.$t('out.linetype'),
          props: "linetype",
          options: this.getOptions("querycodeLkup/SOLINETYPE"),
        },
        {
          type: "input",
          label: this.$t('out.workorderkey'),
          props: "workorderkey",
        },
        {
          type: "input",
          label: this.$t('out.componentqty'),
          props: "componentqty",
        },
        {
          type: "input",
          label: this.$t('out.shelflife'),
          props: "shelflife",
          disabled: true,
          break:true
        },

        {
          type: "input",
          label: this.$t('out.originallinenumber'),
          props: "originallinenumber",
        },
        {
          type: "input",
          label: this.$t('out.originalsku'),
          props: "originalsku",
        },
        {
          type: "input",
          label: this.$t('in.cubicmeter'),
          props: "cubicmeter",
        },
        {
          type: "input",
          label: this.$t('in.hundredweight'),
          props: "hundredweight",
        },
        
        {
          type: "input",
          label: this.$t('out.buyerpo'),
          props: "buyerpo",
        },
        {
          type: "input",
          label: this.$t('out.unitprice'),
          props: "unitprice",
          break:true
        },
        // {
        //   type: "date",
        //   label: this.$t('in.effectivedate'),
        //   props: "effectivedate",
        // },
        
        
        
        {
          type: "checkbox",
          label: this.$t('outbound.replaceGoods'),
          props: "issubstitute",
        },
        {
          type: "checkbox",
          label: this.$t('out.oktosubstitute'),
          props: "oktosubstitute",
        },
        {
          type: "checkbox",
          label: this.$t('out.opprequest'),
          props: "opprequest",
        },
        
      ],
      rules: {
        orderlinenumber: [{ required: true, trigger: "blur" }],
        shelflife: [{ required: true, trigger: "blur" }],
      },
    };
  },
  methods: {},
  mounted() {},
  watch: {},
};
</script>

<style scoped></style>
